package com.ncloud.resman.entity;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.ncloud.common.utils.excel.ExcelResources;
import com.ncloud.resman.conf.CustomJsonDateDeserializer;

/**
 * user:sundelong  date:2017年8月30日
 */
public class ImportIpAddress {
	private Long id          ;
	private String netType     ;
	private String netTypeName ;
	private String ipSegment   ;
	private String ip          ;
	private String state       ;
	private String applyPerson ;
	private String purpose     ;
	@JSONField(serializeUsing = ToStringSerializer.class)
	private Long createUser    ;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date createDate  ;
	@JSONField(serializeUsing = ToStringSerializer.class)
	private Long updateUser    ;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date updateDate  ;
	private String remarks     ;
	

	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getApplyPerson() {
		return applyPerson;
	}
	public void setApplyPerson(String applyPerson) {
		this.applyPerson = applyPerson;
	}
	public String getPurpose() {
		return purpose;
	}
	public void setPurpose(String purpose) {
		this.purpose = purpose;
	}
	public Long getUpdateUser() {
		return updateUser;
	}
	public void setUpdateUser(Long updateUser) {
		this.updateUser = updateUser;
	}
	public Date getUpdateDate() {
		return updateDate;
	}
	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}
	@ExcelResources(title="IP分类", order=1)
	public String getNetType() {
		return netType;
	}
	public void setNetType(String netType) {
		this.netType = netType;
	}
	public String getNetTypeName() {
		return netTypeName;
	}
	public void setNetTypeName(String netTypeName) {
		this.netTypeName = netTypeName;
	}
	@ExcelResources(title="所属网段", order=2)
	public String getIpSegment() {
		return ipSegment;
	}
	public void setIpSegment(String ipSegment) {
		this.ipSegment = ipSegment;
	}
	@ExcelResources(title="IP地址", order=3)
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
//	@ExcelResources(title="状态", order=4)
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public Long getCreateUser() {
		return createUser;
	}
	public void setCreateUser(Long createUser) {
		this.createUser = createUser;
	}
	public Date getCreateDate() {
		return createDate;
	}
	@JsonDeserialize(using = CustomJsonDateDeserializer.class)
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public String getRemarks() {
		return remarks;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
}
